package com.example.treeHole.dao;

import com.example.treeHole.vo.CollectMain;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CollectMainMapper {
    int deleteByPrimaryKey(String id);

    int insert(CollectMain record);

    int insertSelective(CollectMain record);

    CollectMain selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CollectMain record);

    int updateByPrimaryKey(CollectMain record);

    int findAliCount(String articleId);

    List<Map<String, Object>> findCSByList(@Param("articleIds") List<String> articleIds, @Param("uId") String currentId);

    int collect(@Param("articleId") String articleId, @Param("uId") String uId);

    void deleteCollect(@Param("articleId")String articleId,@Param("uId") String uId);
}